package com.woniuxy.third.mapper;

import com.woniuxy.third.entity.Teacher;
import com.woniuxy.third.entity.TeacherInfo;
import com.woniuxy.third.entity.Teacherauth;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @Author: yangtao
 * @date 2021/7/19 10:56
 * @Version 1.0
 */
@Mapper
public interface TeacherMapper {
    public Teacher findById(int id);

    public boolean addInfo(Teacher teacher);

    public void imageUpload(@Param("path") String path, @Param("id") int id);

    void updateQualification(@Param("path") String path, @Param("tid") int tid);

    int updatePhone(@Param("phone") String phone,@Param("id") int id);

    int updateIntro(@Param("intro") String intro,@Param("id") int id);

    int delinfo(int id);

    void updateinfo(Teacher teacher);

    void updateauth(Teacherauth teacher);
}
